package cn.com.dcsgo.ioc.simple;

import org.springframework.stereotype.Controller;

/**
 * UserController
 *
 * @author Dcsgo
 * @since 2025/2/5 12:29
 */
@Controller
public class UserController {
    private final UserService userService;

    public UserController(UserService userService) {
        this.userService = userService;
    }

    public void usersInfo() {
        System.out.println(userService.findAll());
    }
}
